﻿@model CultivJupiterContactForm.ViewModel.ContactViewModel

@if (Model.SubmitHandled)
{
    <p>Thanks, we'll get back to you soon.</p>
}
else
{
    using (Html.BeginUmbracoForm("HandleContactFormSubmit", new Guid("BB45D8A4-DD88-444E-89A6-A64351EFBE6A")))
    {
        @Html.ValidationSummary(true)
        <fieldset>
            <legend>Contact</legend>
            <div class="editor-label">
                @Html.LabelFor(model => model.Name)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Name)
                @Html.ValidationMessageFor(model => model.Name)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.Email)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Email)
                @Html.ValidationMessageFor(model => model.Email)
            </div>
            <div class="other editor-label">
                @Html.LabelFor(model => model.Other)
            </div>
            <div class="other editor-field">
                @Html.EditorFor(model => model.Other)
                @Html.ValidationMessageFor(model => model.Other)
            </div>
            <div class="editor-label">
                @Html.LabelFor(model => model.Message)
            </div>
            <div class="editor-field">
                @Html.EditorFor(model => model.Message)
                @Html.ValidationMessageFor(model => model.Message)
            </div>
            <p>
                <input type="submit" value="Send" />
            </p>
        </fieldset>
        <style type="text/css">.other { display: none; }</style>
    }
}